/**
 * 
 */
package org.insia.smartposse.metier.webservice;

import java.io.Serializable;

import org.insia.smartposse.metier.FreelanceSkill;

/**
 * @author raguerri
 * @since 18 avr. 07
 * @version 0.0.1
 * 
 */
public class LightFreelanceSkill 
implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2053491400812728807L;
	private long id;
	private long freelance;
	private long skill;
	private int rate;
	private int preference;
	
	/**
	 * 
	 *
	 */
	public LightFreelanceSkill () {}
	
	/**
	 * 
	 * @param fs
	 */
	public LightFreelanceSkill(FreelanceSkill fs) {
		id = fs.getId();
		freelance = fs.getFreelance().getId();
		skill = fs.getSkill().getId();
		rate = fs.getRate();
		preference = fs.getPreference();
	}
	
	/**
	 * @return the freelance
	 */
	public long getFreelance() {
		return freelance;
	}
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @return the preference
	 */
	public int getPreference() {
		return preference;
	}
	/**
	 * @return the rate
	 */
	public int getRate() {
		return rate;
	}
	/**
	 * @return the skill
	 */
	public long getSkill() {
		return skill;
	}
	/**
	 * @param freelance the freelance to set
	 */
	public void setFreelance(long freelance) {
		this.freelance = freelance;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @param preference the preference to set
	 */
	public void setPreference(int preference) {
		this.preference = preference;
	}
	/**
	 * @param rate the rate to set
	 */
	public void setRate(int rate) {
		this.rate = rate;
	}
	/**
	 * @param skill the skill to set
	 */
	public void setSkill(long skill) {
		this.skill = skill;
	}
}
